/**
 * Bluetooth test file
 */

module.exports = (win) => {
  win.webContents.on('select-bluetooth-device', (event, deviceList, callback) => {
    event.preventDefault()
    if (deviceList && deviceList.length > 0) {
      // return the first device
      callback(deviceList[0].deviceId)
    }
  })
}